<?php 
class detailAction extends sfAction{
	private $data = null;
	public function execute($request){
		$id = intval($request->getParameter('id'));
		if($id <= 0){
			$this->redirect($this->generateUrl('faq'));
			return sfView::NONE;
		}
		
		$this->data['banners']		= BannersTable::getDataListFrontend(null);
		$this->data['faq']			= FaqsTable::getDataById($id);
	
		
		$this->data['id']	= $id;
		$this->setVar('data', $this->data);
	}
}